import request from '@/utils/request'

export function addMenuApi(params = {}) {
  return request.post('/system/menu/addMenu', params)
}

export function modifyMenuApi(params = {}) {
  return request.put('/system/menu/modifyMenu', params)
}

export function getMenuListApi(params = {}) {
  return request.get('/system/menu/getMenuList', { params })
}

export function getTreeMenuApi(params = {}) {
  return request.get('/system/menu/getTreeMenu', { params })
}

export function getRoutersApi(params = {}) {
  return request.get('/system/menu/getRouters', { params })
}

export function deleteMenuApi(params = {}) {
  return request.delete('/system/menu/deleteMenu', { params })
}
